import { ref } from "vue";
import QueryTable from "@/components/query-table";
export function useSearchHook() {
  const queryTableRef = ref<InstanceType<typeof QueryTable>>();
  const resetQueryForm = () => {
    queryTableRef.value?.getTableData();
  };
  const searchBtnClick = (queryParams: any) => {
    queryTableRef.value?.getTableData(queryParams);
  };
  return [queryTableRef, resetQueryForm, searchBtnClick];
}
